
#ifndef _MEMBER_BLibrary_H_
#define _MEMBER_BLibrary_H_

#include <BString>

#ifdef _LINUX_
#include <dlfcn.h>
#else
#include <Windows.h>
#endif

namespace BWE
{
	class member_BLibrary
	{
	public:
		member_BLibrary();
		~member_BLibrary();
		
		bool load();
		bool unload();
		void* address(const char* name);

#ifdef _LINUX_
		void*		handle;
#endif
#ifdef _WINDOWS_SYSTEM_
		HMODULE		handle;
#endif
		BString		fileName;
	};
}

#endif
